<form id="add-form" class="form-horizontal mf_form" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_name" data-rule="required" class="form-control" name="row[store_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_bannerimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_bannerimage" data-rule="required" class="form-control" size="50" name="row[store_bannerimage]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-store_bannerimage" class="btn btn-danger faupload" data-input-id="c-store_bannerimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-store_bannerimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-store_bannerimage" class="btn btn-primary fachoose" data-input-id="c-store_bannerimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-store_bannerimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-store_bannerimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_slideimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_slideimages" data-rule="required" class="form-control" size="50" name="row[store_slideimages]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-store_slideimages" class="btn btn-danger faupload" data-input-id="c-store_slideimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-store_slideimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-store_slideimages" class="btn btn-primary fachoose" data-input-id="c-store_slideimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-store_slideimages"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-store_slideimages"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">特点:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-feature_ids" data-rule="" data-source="feature/index" data-multiple="true" data-field="feature_name" class="form-control selectpage" name="row[feature_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_address" data-rule="required" class="form-control" name="row[store_address]" type="text" data-target="#holdMsg">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" class="btn btn-danger" data-toggle="addresspicker" data-lat-id="c-store_latitude" data-lng-id="c-store_longitude">选择经纬度</button></span>
                </div>
                <span class="msg-box" id="holdMsg"></span>
            </div>
            <span class="mf_backend_field_note">在"选择经纬度"里可以帮助你选择坐标</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_longitude" data-rule="required" class="form-control" name="row[store_longitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_latitude" data-rule="required" class="form-control" name="row[store_latitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Valid_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
              <input  id="c-switch" name="row[switch]" type="hidden" value="0">
              <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
              </a>
              <div class="input-group-addon no-border no-padding" style="width:200px;text-align:left;">
                <div id="c-switch-text">&nbsp;&nbsp;长期有效</div>
                <input id="c-valid_time" style="margin-left:10px;" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[valid_time]" type="text" value="{:date('Y-m-d')}">
              </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_mobile" data-rule="required" class="form-control" name="row[store_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('通知的手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobiles" class="form-control" name="row[mobiles]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_pwd" class="form-control" name="row[weight]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_desciptioncontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-store_desciptioncontent" data-rule="required" class="form-control editor" rows="5" name="row[store_desciptioncontent]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
